<template>
  <view class="my-container">
    <my-login v-if="!token"></my-login>
    <my-userinfo v-else></my-userinfo>
  </view>
</template>

<script>
   import badgeMix from '../../mixin/tabar-badge.js'
   import { mapState } from 'vuex'
  export default {
    mixins:[badgeMix],
    data() {
      return {
        
      }
    },
    computed: {
        // 2. 从 m_user 模块中导入需要的 token 字符串
        ...mapState('m_user', ['token']),
      },
    methods: {
     
    },
  }
</script>

<style lang="scss">
  page, .my-container {
    height: 100%;
  }
</style>
